package com.encryption.model;

/**
 * FilePermissionAsso entity. @author MyEclipse Persistence Tools
 */

public class FilePermissionAsso implements java.io.Serializable {

	// Fields

	private Integer id;
	private int file;
	private int fileLevel;
	/**
	 * 0表示所有人，1表示个人，2表示部门
	 */
	private Integer allowType; 
	private Integer allowValue = 0;
	private Integer allowView = 0;
	private Integer allowDownload = 0;
	private Integer allowPrint = 0;

	// Constructors

	/** default constructor */
	public FilePermissionAsso() {
	}

	public FilePermissionAsso(Integer id, int file, int fileLevel,
			Integer allowType, Integer allowValue, Integer allowView,
			Integer allowDownload, Integer allowPrint) {
		super();
		this.id = id;
		this.file = file;
		this.fileLevel = fileLevel;
		this.allowType = allowType;
		this.allowValue = allowValue;
		this.allowView = allowView;
		this.allowDownload = allowDownload;
		this.allowPrint = allowPrint;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public int getFile() {
		return file;
	}

	public void setFile(int file) {
		this.file = file;
	}

	public int getFileLevel() {
		return fileLevel;
	}

	public void setFileLevel(int fileLevel) {
		this.fileLevel = fileLevel;
	}

	public Integer getAllowType() {
		return allowType;
	}

	public void setAllowType(Integer allowType) {
		this.allowType = allowType;
	}

	public Integer getAllowValue() {
		return allowValue;
	}

	public void setAllowValue(Integer allowValue) {
		this.allowValue = allowValue;
	}

	public Integer getAllowView() {
		return allowView;
	}

	public void setAllowView(Integer allowView) {
		this.allowView = allowView;
	}

	public Integer getAllowDownload() {
		return allowDownload;
	}

	public void setAllowDownload(Integer allowDownload) {
		this.allowDownload = allowDownload;
	}

	public Integer getAllowPrint() {
		return allowPrint;
	}

	public void setAllowPrint(Integer allowPrint) {
		this.allowPrint = allowPrint;
	}

}